{% load custom  %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=s, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    {% if error %}
    <h3>error: {{error}}</h3>
    {% else %}
    {% comment %} 没有 error 就把消息message传进来 {% endcomment %}
    <label style="color:{{message_type.color}}">{{message_type.label}}</label>
    <span>{{message|deep_check_message}}</span>
    {% endif %}
</body>
</html>